<?php


namespace App\Services;


class MessageService
{
   public function send($template,$page,$toUser,$data)
   {
       $app=app('wechat.mini_program');
       $app->subscribe_message->send([
           'touser' => $toUser,
           'template_id' => $template,
           'page' => $page,
           'data' => $data,
       ]);
   }
}
